00001 00005 class TrafficLight: public TraffEduObject 00006 { 00007 TrafficLightTypes lightType; 00008 TrafficLightColor color; 00009 TrafficLightColor arrowColor; 00010 int colorArray[101]; 00011 OSGWindows* osgwind_; 00012 00013 public: 00020 TrafficLight(OSGWindows* osgwind__); 00030 TrafficLight(OSGWindows* osgwind,TrafficLightTypes newType,TrafficLightColor newColor, TrafficLightColor newArrowColor=YESIL); 00035 ~TrafficLight(); 00041 void setColor(TrafficLightColor color); 00047 void draw(osg::ref_ptr<osg::Group> root,int animationFlag=-1); 00048 00053 TrafficLightColor getColor() {return color;} 00054 00059 TrafficLightColor getArrowColor() {return arrowColor;} 00060 00065 TrafficLightTypes getTrafficLightType(){return lightType;} 00066 00072 void setNewFramesLightColor(int oldFrameId,int newFrameId); 00073 00078 void changeColor(int frameId); 00079 00084 void changeColorAnim(int frameId); 00085 00092 void fillColorArray(TrafficLightColor newcolor); 00093 00099 TrafficLightColor getFrameColor(int frameId); 00100 00106 void setFrameColor(int frameId,int color); 00107 00111 osg::ref_ptr<osg::Sequence> seqNode; 00112 00113 }; 00114 00115 00116 00117 00118
1.4.6-NO